package com.vinny.springbootflowable2.common.constant;

/**
 * API响应状态码常量类
 */
public class ApiResultCode {
    /**
     * 成功
     */
    public static final int SUCCESS = 200;

    /**
     * 参数错误
     */
    public static final int PARAM_ERROR = 400;

    /**
     * 未授权
     */
    public static final int UNAUTHORIZED = 401;

    /**
     * 禁止访问
     */
    public static final int FORBIDDEN = 403;

    /**
     * 资源不存在
     */
    public static final int NOT_FOUND = 404;

    /**
     * 业务异常
     */
    public static final int BUSINESS_ERROR = 500;

    /**
     * 服务器错误
     */
    public static final int SERVER_ERROR = 500;

    /**
     * 服务不可用
     */
    public static final int SERVICE_UNAVAILABLE = 503;
} 